package com.koron.order.experiment.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.experiment.bean.po.ExperimentReadyPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

public interface ExperimentReadyService extends CommonService {

    int insert(SessionFactory factory, ExperimentReadyPo experimentReady);

    int update(SessionFactory factory, ExperimentReadyPo experimentReady);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    ExperimentReadyPo queryById(SessionFactory factory, String id);

    List<ExperimentReadyPo> queryList(SessionFactory factory, ExperimentReadyPo experimentReady);

    List<ExperimentReadyPo> queryByOrderId(SessionFactory factory, String orderId);

    int insertBatch(SessionFactory factory, List<ExperimentReadyPo> experimentReadyPoList);

    int updateBatch(SessionFactory factory, List<ExperimentReadyPo> experimentReadyPoList);

}
